package com.hjc.springbootmovies.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by IntelliJ IDEA.
 * User: HJC
 * Date: 2019/12/5
 * Time: 18:11
 * To change this template use File | Settings | File Templates.
 */
@Controller
@RequestMapping("/money")
public class MoneryCnotroller {

    @GetMapping("moneyControllerAll")
    public String moneyAll(){
        return "html/money/all";
    }

    @GetMapping("moneyControllerGetDetail")
    public String moneyGetDetail(Integer xid ,Model model){
        model.addAttribute("xid",xid);
        return "html/money/getDetail";
    }

    @GetMapping("moneyControllerShowBroad")
    public String moneyBroad(){

        return "html/money/showBroad";
    }
}
